<div id='body'>
    <div id='main-body' >
        <p class='breascum'><h5><a href="<?=$this->baseUrl?>">Trang chủ</a> / <a href="<?=$this->baseUrl?>/article/index">Tin tức</a></h5></p>
        <p> <h3>TRANG TIN TỨC</h3></p>

        <?php
            foreach($this->articleType as $key=>$item)
            {
        ?>
        <p>
            <h4><?=$item->name_vn?></h4>
            <?php
                if(count($this->listArticle[$key]) > 0){
                foreach($this->listArticle[$key] as $article)
                {
                    if(count($article) > 0){
            ?>
                    <div class='news-block'>
                        <div class='news-block-main'>
                            <img class='news-block-main-img' width="70" height="70" style='float: left;' src='<?=$this->baseUrl?>/public/uploads/<?=$article[0]->avatar?>' atl='thumb'/>
                            <b><?=$article[0]->title_vn?></b><br/>
                            <?=$article[0]->short_content_vn?>
                            <span class='readmore1'><a href='<?=$this->baseUrl?>/article/detail/id/<?=$article[0]->id?>'>Đọc thêm</a></span>

                        </div>
                        <ul class='news-block-list'>
                            <?php
                                if(count($article) > 1) {
                                for($i = 1; $i <= count($article); $i++)
                                {
                            ?>
                            <li><a href='<?=$this->baseUrl?>/article/detail/id/<?=$article[$i]->id?>'><?=$article[$i]->title_vn?> </a></li>
                            <?php } } ?>
                        </ul>

                        <div class='news-block-rss'>
                            RSS
                            <a href='#'><img src='<?=$this->baseUrl?>/public/media/images/rss.jpg' alt='rss'/></a>
                        </div>
                    </div>
            <?php
                    }
                }
            }
            ?>
        </p>
        <?php } ?>

        <br/><br/>

        <br/><br/><br/><br/>
    </div>
    <div id='sidebar'>
        <br/>
    </div>
</div>